#ifndef _YIELD_H_
#define _YIELD_H_
#include "python3/PythonGrammar30TreeConstants.h"
#include "ast/exprType.h"
class IVisitor;
class Yield;
typedef QSharedPointer<Yield> YieldPtr;

class Yield: public exprType
{
public:
    explicit Yield(const exprTypePtr& value, int nodeId=JJTYIELD_EXPR);
    virtual ~Yield();
    
    
    exprTypePtr value();
    void setValue(const exprTypePtr& value);
    
    
    virtual QString type() const;
    virtual QString toString() const;
    virtual void accept(IVisitor* visitor, const SimpleNodePtr& node);
    virtual void traverse(IVisitor* visitor);
private:
    exprTypePtr _value;
};




#endif